package objects.cluster;

import java.util.Calendar;

import objects.ObjectCodes;


import utils.Utils;

import com.google.gson.Gson;

public class MyJobData implements  ObjectCodes{
	public int nodes;
	public int procs;
	public int walltime;
	public int freenodes;
	public int freeprocs;
	public int activejobs;
	public int queuedjobs;
	public int queuetime;
	public int date;
	public int time;
	public long datetime;
	
	public MyJobData(){}

	public String toString()
	{
		return CLU_JOB_INFO+"|"+ new Gson().toJson(this);
	}
	public static MyJobData fromJSon(String json)
	{
		return new Gson().fromJson(json,MyJobData.class);
	}
}